DomainObjects Class Library

Collection<ContainerClass,RelatedClass> Members

Collection<ContainerClass,RelatedClass> overview

Public Instance Constructors

Collection<ContainerClass,RelatedClass> Overloaded. Initializes a new instance of the Collection<ContainerClass,RelatedClass> class.

Public Instance Properties

Count Gets the number of elements contained in the ICollection`1.
IsModified Gets a value indicating whether any related objects have been added or removed from this collection.
IsReadOnly Gets a value indicating whether the ICollection`1 is read-only.
Item Gets or sets the element at the specified index.
PrimaryKeyPersistableObject (inherited from FieldRelationship<ContainerClass,CollectionDescriptor>) Gets the primary key persistable objects in this relationship.
PrimaryKeyTypeObject (inherited from FieldRelationship<ContainerClass,CollectionDescriptor>) Gets the primary key persistable objects in this relationship.
RelationshipDescriptor (inherited from FieldRelationship<ContainerClass,CollectionDescriptor>) Gets the relationship descriptor that defines this relationship.

Public Instance Methods

AddOverloaded. Adds an item to the ICollection`1.
AddItemFromDatabase Adds an item to the set of related objects. The item must not be null.
Clear Removes all items from the ICollection`1.
Contains Determines whether the ICollection`1 contains a specific value.
CopyTo Copies the elements of the ICollection`1 to an Array, starting at a particular Array index.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetCopyOfAllRelatedObjectsExcludingDeletedItems Gets a non-null copy of the set of related objects retrieved from the database, added in memory and removed in memory. Related objects that have been deleted in memory, i.e., where NeedsDelete returns true, will not appear in the returned list. This method will retrieve objects from the database if not already retrieved. Note that editing this list will not edit the list of foreign-key objects as this method just returns a copy.
GetCopyOfAllRelatedObjectsIncludingDeletedItems Gets a non-null copy of the set of related objects retrieved from the database, added in memory and removed in memory. Related objects that have been deleted in memory, i.e., where NeedsDelete returns true, will appear in the returned list. This method will retrieve objects from the database if not already retrieved. Note that editing this list will not edit the list of foreign-key objects as this method just returns a copy.
GetCopyOfRelatedObjectsLoadedIntoMemoryIncludingDeletedItems Gets a non-null copy of the set of related objects retrieved from the database, added in memory and removed in memory. Related objects that have been deleted in memory, i.e., where NeedsDelete returns true, will appear in the returned list. It does so without retrieving objects from the database; it only returns what is already in memory. Note that editing this list will not edit the list of related objects as this method just returns a copy.
GetEnumerator Returns an enumerator that iterates through a collection.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData (inherited from FieldRelationship<ContainerClass,CollectionDescriptor>) Populates a SerializationInfo with the data needed to serialize the target object.
GetType (inherited from Object)Gets the Type of the current instance.
NoRelatedItemsExistInDatabase A message to this instance that no items in this relationship currently exist in the database.
Remove Removes the first occurrence of a specific object from the ICollection`1.
ToString (inherited from Object)Returns a String that represents the current Object.

See Also

Collection<ContainerClass,RelatedClass> Class | DomainObjects.Facade.Domain Namespace